﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using ScheduleMaker.ConfigManager;
using System.Configuration;

namespace ScheduleMaker
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Config config = new Config();
            config.Type = Mode.School;
            ConfigManager.ConfigManager.setConfiguration(config);
            if (ConfigManager.ConfigManager.isConfigFileExists())
            {
                Application.Run(new smLoginForm());
            }
            else
            {
                Application.Run(new smConfigFile());
            }
        }

    }
}
